/* Settings */
.setting-group:not(:first-child) {
  margin-top: 20px;
}

.setting-label {
  font-weight: bold;
}

.setting-items {
  width: 100%;
}

.app-settings {
  /* background: var(--theme-background); */
}

.setting-sidebar {
  width: 240px;
  font-size: 14px;
}

.setting-sidebar-user-info {
  padding: 20px;
}

.setting-sidebar-user-info-avatar {
  width: 45px;
  height: 45px;
  background-size: cover;
}

.setting-sidebar-user-info-name {
  padding-left: 10px;
  font-weight: bold;
  font-size: 16px;
  color: var(--label-color);
}

.setting-sidebar-search {
  padding: 0 10px;
}

.setting-sidebar-nav {
  padding: 0 10px;
  padding-bottom: 30px;
  margin-top: 30px;
}

.setting-sidebar-nav-item {
  height: 34px;
  padding: 0 10px;
  margin: 5px 0;
  border-radius: var(--box-border-radius);
}

.setting-sidebar-nav-item:hover {
  background: var(--hover-bg-color);
}

.setting-sidebar-nav-item.active {
  background: var(--active-bg-color);
}

.setting-sidebar-nav-item-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: 50% 50%;
}

/* .setting-content {
  background: var(--theme-background-primary);
} */

.setting-content-main {
  padding-left: 40px;
  padding-right: 40px;
}

.setting-content-heading {
  width: 100%;
  height: 80px;
  padding-left: 40px;
}

.setting-content-heading-item {
  font-size: 24px;
  font-weight: bold;
}

.setting-content-heading-route.disabled {
  color: var(--label-color);
}

.setting-content-heading-route-divider {
  margin: 0 5px;
  width: 32px;
  height: 32px;
}

.setting-content-heading-route-divider svg {
  width: 18px;
  height: 18px;
}

.setting-content-heading-route-divider svg {
  stroke: var(--label-color);
}

.setting-system-main-content {
  /* max-width: 600px; */
  min-width: 400px;
  padding-right: 40px;
  padding-bottom: 40px;
}

.setting-system-desktop-inner {
  width: 160px;
  padding-top: 56.25%;
  border: 4px solid #000;
  border-radius: var(--box-border-radius);
  overflow: hidden;
}

.setting-system-info {
  margin-left: 20px;
}

.setting-nav-row {
  padding: 15px 20px;
  padding-right: 60px;
}

.setting-nav-row.has-icon {
  padding-left: 60px;
}

.setting-nav-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.setting-nav-row-right {
  margin-left: auto;
}

.setting-system-info-name {
  font-size: 16px;
  font-weight: bold;
}

.setting-system-info-role {
  margin-top: 3px;
}

.setting-system-info-action {
  margin-top: 5px;
  color: var(--accent-color);
}

.setting-system-office {
  margin-top: 20px;
}

.setting-system-office-onedrive-icon {
  width: 32px;
  height: 32px;
  background: center / cover no-repeat url("imgs/icons/One Drive.png");
}

.setting-system-office-onedrive-info {
  margin-left: 20px;
}

.setting-system-office-onedrive-info-name {
  font-size: 14px;
  font-weight: bold;
}

.setting-system-office-onedrive-info-action {
  color: var(--accent-color);
}

.setting-nav-list {
  margin-top: 10px;
}

.setting-nav-item {
  margin: 5px 0;
  background-color: var(--nav-item-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--box-border-radius);
}

/* .setting-nav-item:hover {
  background-color: var(--hover-bg-color);
} */

.setting-nav-item-header {
  padding: 10px 0;
}

.setting-nav-item-icon {
  width: 50px;
}

.setting-nav-item-info {
  padding-left: 20px;
}

.setting-nav-item-name {
  font-weight: 500;
}

.setting-nav-item-desc {
  margin-top: 5px;
  color: var(--label-color);
}

.setting-nav-item-control {
  margin-left: 20px;
  margin-right: 10px;
}

.setting-nav-item-icon-more svg {
  width: 18px;
  height: 18px;
  stroke: var(--label-color);
}

.setting-nav-item-icon-more {
  transition: transform 0.3s ease;
}

.setting-nav-item-icon.rotate {
  transform: rotate(-90deg);
}

.setting-nav-item-content {
  border-top: 1px solid var(--border-color);
  transition: height 0.3s var(--animation-timing-function);
  display: none;
}

.setting-nav-item-content.show {
  display: block;
}

.setting-help {
  max-width: 260px;
  width: 100%;
  padding-left: 10px;
  margin-bottom: 40px;
}

.setting-system-help-item-label {
  font-weight: 500;
  margin-bottom: 15px;
}

.setting-system-help-actions {
  margin-top: 60px;
}

.setting-system-help-item-link {
  margin: 10px 0;
  color: var(--accent-color);
}

.setting-quick-theme {
  gap: 6px;
}

.setting-quick-theme-item {
  padding: 4px;
  width: 120px;
  height: 100px;
}

.setting-quick-theme-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.setting-quick-theme-item-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--box-border-radius);
}

.setting-quick-theme-item-color {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: var(--box-border-radius);
}

.setting-quick-theme-item-color-accent {
  width: 20px;
  height: 6px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.settings-screen-preview {
  position: relative;
  width: 240px;
  overflow: hidden;
  margin-bottom: 40px;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-image .3s ease .3s;
  border-radius: var(--box-border-radius);
}

.settings-screen-preview-inner {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border: 4px solid black;
  border-radius: var(--box-border-radius);
}

.settings-screen-preview-taskbar {
  position: absolute;
  bottom: 0;
  margin-left: -10%;
  width: 120%;
  height: 10px;
  background-color: var(--window-background);
}

html.glass .settings-screen-preview-taskbar {
  backdrop-filter: blur(var(--box-blur));
}

.settings-screen-preview-card {
  position: absolute;
  bottom: 20px;
  right: 10px;
  width: 70px;
  height: 80px;
  background-color: var(--theme-background);
  border-radius: var(--box-border-radius);
  padding: 10px;
}

.settings-screen-preview-card-placeholder-line {
  width: 100%;
  height: 2px;
  background-color: var(--label-color);
  margin-bottom: 10px;
}

.settings-screen-preview-card-placeholder-line.half {
  width: 50%;
}

.settings-screen-preview-card-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.settings-recent-images-header {
  margin-bottom: 5px;
  font-size: 14px;
}

.settings-recent-images {
  gap: 10px;
}

.settings-recent-image {
  width: 100px;
  height: 100px;
  padding: 2px;
  border-radius: var(--box-border-radius);
}

.settings-recent-image-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--box-border-radius);
}

.settings-recent-image:first-child {
  border: 2px solid var(--accent-color);
}

/* .settings-recent-image:not(:last-child) {
  margin-right: 10px;
} */

/* Photos */

.app-photos {
  background-color: #000;
}

.app-photos video {
  outline: 0;
}

.video-overlays {
  transition: opacity .3s var(--animation-timing-function);
}

.video-overlays.show {
  opacity: 1;
}

.video-overlays.hide {
  opacity: 0;
  transition-delay: 2.5s;
}

.video-overlay {
  width: 100%;
  height: 60px;
  pointer-events: none;
  position: absolute;
  left: 0;
}

.video-overlay-top {
  top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 100%);
}

.video-overlay-bottom {
  bottom: 0;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .8) 100%); */
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
}

/* Action Center */

.action-center {
  position: fixed;
  right: 10px;
  bottom: 50px;
  width: 340px;
  animation-name: slideLeft;
}

.action-center-top {
  padding: 20px;
  padding-bottom: 0;
}

.action-center-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.action-center-button {
  height: 80px;
  color: var(--primary-text-color);
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.action-center-button-icon {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--box-border-radius);
  background: var(--button-bg-color);
}

.action-center-button-icon:hover {
  background: var(--button-bg-color-hover);
}

.action-center-button.active .action-center-button-icon {
  background: var(--accent-color);
}

.action-center-button.active svg:not(.no-stroke) {
  stroke: #fff !important;
}

.action-center svg {
  width: 20px;
  height: 20px;
}

.action-center-button-text {
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-center-sliders {
  margin-top: 10px;
}

.action-center-slider {
  padding: 10px 0;
}

.action-center-slider-icon {
  padding-right: 10px;
  display: flex;
  align-items: center;
}

.action-center-footer {
  padding: 10px 13px;
  background: var(--mask-color);
}

.action-center-footer-item {
  padding: 3px;
  border-radius: var(--box-border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-center-footer-item:hover {
  background: var(--hover-bg-color);
}

.action-center-batery svg {
  width: 24px;
  height: 24px;
}

.action-center-batery-text {
  padding-left: 5px;
  font-size: 11px;
  line-height: 0;
}

.action-center-config {
  margin-left: auto;
}

/* Calculator */
.calculator-display {
  flex-shrink: 0;
  height: 80px;
  padding: 0 20px;
}

.calculator-display-input {
  height: 30px;
}

.calculator-display-result {
  font-size: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: right;
  cursor: default;
}

.calculator-display-result div {
  user-select: text;
}

.calculator-buttons,
.calculator-buttons-row {
  gap: 4px;
}

.calculator-buttons {
  padding: 20px;
}

.calculator-button {
  border-radius: var(--box-border-radius);
  background: var(--button-bg-color);
  font-size: 16px;
  cursor: pointer;
}

.calculator-button.emphasis {
  font-size: 22px;
  font-weight: bold;
  background: var(--button-bg-color-secondary);
}

.calculator-button:hover,
.calculator-button.emphasis:hover {
  background: var(--button-bg-color-hover);
}

/* GXG */
.gxg-popup{
  position: fixed;
  width: 300px;
  bottom: 0;
  right: 200px;
  background-color: unset;
  box-shadow: unset !important;
  border-radius: unset !important;
  z-index: 999999999999999 !important;
  backdrop-filter: unset !important;
}
.gxg-container {
  
}
.gxg-img img {
  width: 100%;
  height: 100%;
}

.win11-dialog {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  display: none;
  /* overflow: hidden; */
  font-family: 'Segoe UI', sans-serif;
  animation: dialogFadeIn 0.2s ease-out;
  z-index: 9999999999;
}
.win11-dialog::after{
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  bottom: 25px;
  right: -20px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 20px solid rgba(255, 255, 255, 0.95);
  transform: skewY(20deg);
}

.win11-dialog.visible {
  display: block;
}

.win11-dialog-titlebar {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  border-radius: 8px 8px 0 0 ;
}

.win11-dialog-title {
  font-size: 14px;
  color: #000;
  margin: 0;
  user-select: none;
}

.win11-dialog-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.win11-dialog-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.win11-dialog-content {
  padding: 16px;
  color: #000;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 浏览器窗口的背景色和内容 */
.browser-address-bar {
  background-color: #f1f1f1;
  margin-top: 29px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browser-url-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.browser-content iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* 按钮的样式 */
.toggle-address-bar {
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.toggle-address-bar:hover {
  background-color: #0056b3;
}
